import request from '@/api/request'
// 添加到购物车
function addToCarInfo(data) {
    return request({
        url: '/cart/addCart',
        method: 'POST',
        data,
    })
}
// 购物车列表
function getCartListInfo(data) {
    return request({
        url: '/cart/cartList',
        method: 'GET',
        data,
    })
}
// 从购物车删除
function DeleteActionInfo(data) {
    return request({
        url: '/cart/deleteAction',
        method: 'GET',
        data,
    })
}

export { addToCarInfo, getCartListInfo, DeleteActionInfo }
